import {request} from "@/network/request-config";

export function setAttendanceByDateAPI(data){
    return request({
        url:"/hems/attendance/batchadd",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

export function getAttendanceByDateIntervalAPI(data){
    return request({
        url:"/hems/attendance/query/dateInterval",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

export function getAttendanceByDateAndClassAPI(attendDate, classId){
    return request({
        url:"/hems/attendance/query/" + attendDate + '/' + classId,
        method:"get"
    }).then(res=>{
        return res
    })
}

export function updateAttendanceByIdAPI(data){
    return request({
        url:"/hems/attendance/mod",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}
